08914c5a5bb56e18e754d6857190ce85de852f32,spring-boot-sample-web-reactive/src/test/java/sample/web/reactive/ReactiveSampleApplicationTests.java,ReactiveSampleApplicationTests,homeController,#,36
Before Change
@Test
public void homeController() {
ClientRequest<Void> request = ClientRequest.GET("http://localhost:{port}/", this.port)
.accept(MediaType.APPLICATION_JSON).build();
Mono<BootStarter> result = this.webClient
.exchange(request)
.then(response -> response.bodyToMono(BootStarter.class));
ScriptedSubscriber.<BootStarter>create()
.consumeNextWith(starter -> {
After Change
@Test
public void homeController() {
Mono<BootStarter> result = this.webClient
.get().uri("/")
.accept(MediaType.APPLICATION_JSON)
.exchange()
.then(response -> response.bodyToMono(BootStarter.class));
ScriptedSubscriber.<BootStarter>create()
.consumeNextWith(starter -> {